<?php
// +----------------------------------------------------------------------
// | 后台应用路由
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('login','PublicController/login');
Route::post('login/post','PublicController/loginPost');
Route::get('/','Dashboard/index')->middleware(app\admin\middleware\Auth::class);
Route::get('index','Dashboard/index')->middleware(app\admin\middleware\Auth::class);

Route::group('sys', function(){
    Route::get('user/index','sysUser/index');
    Route::get('user/info','sysUser/info');
    Route::post('user/add','sysUser/add');
    Route::post('user/edit','sysUser/edit');
    Route::get('user/delete','sysUser/delete');
    Route::post('user/change/password','sysUser/changePassword');
    Route::get('user/logout','sysUser/logout');

    Route::get('role/index','sysRole/index');
    Route::get('role/info','sysRole/info');
    Route::post('role/add','sysRole/add');
    Route::post('role/edit','sysRole/edit');
    Route::get('role/delete','sysRole/delete');
    Route::post('role/authorize','sysRole/authorize');
    Route::get('role/permissions','sysRole/permissions');
    
    Route::get('menu/index','sysMenu/index');
    Route::get('menu/info','sysMenu/info');
    Route::post('menu/add','sysMenu/add');
    Route::post('menu/edit','sysMenu/edit');
    Route::get('menu/delete','sysMenu/delete');
})->middleware(app\admin\middleware\Auth::class);


    

